package com.itheima.string;

import java.util.Scanner;

public class Demo2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        // Scanner的字符串是new创建的
        String s1 = sc.next(); // 输入abc
        String s2 = "abc";
        System.out.println(s1 == s2); // false
        System.out.println(s1.equals(s2)); // true
    }
}
